<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\Url ;

/* @var $this yii\web\View */
/* @var $model backend\models\ManagerForm */
/* @var $form ActiveForm */
?>
<div class="assignment-create">

    <?php $form = ActiveForm::begin(
            [   'id'=>'add',
                'enableAjaxValidation' => true,
                'validationUrl' => Url::toRoute(['validate-form']),

            ]
    ); ?>


    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
        <h4 class="modal-title">管理员信息</h4>
    </div>
    <div class="modal-body">
        <?= $form->field($model, 'username')->textInput(['placeholder'=>'用户名'])->label(false) ?>
        <?= $form->field($model, 'password')->passwordInput(['placeholder'=>'密码'])->label(false) ?>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
        <button class="btn btn-primary" type="submit">保存</button>
    </div>
    <?php ActiveForm::end(); ?>

</div><!-- assignment-create -->


